package com.ruoyi.produce.process.defective.service;

import com.ruoyi.produce.process.defective.domain.Defective;
import com.ruoyi.produce.process.defective.mapper.DefectiveMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Drj 2021/12/20
 */
@Service
public class DefectiveServiceImpl implements IDefectiveService{
    @Autowired
    private DefectiveMapper defectiveMapper;

    /**
     * 次品检测记录查询
     *
     * @param defective
     * @return
     */
    @Override
    public List<Defective> selectDefectiveList(Defective defective) {
        return defectiveMapper.selectDefectiveList(defective);
    }

    /**
     * 次品检测记录新增
     *
     * @param defective
     * @return
     */
    @Override
    public int insertDefective(Defective defective) {
        return defectiveMapper.insertDefective(defective);
    }

    /**
     * 次品检测记录更新
     *
     * @param defective
     * @return
     */
    @Override
    public int updateDefective(Defective defective) {
        return defectiveMapper.updateDefective(defective);
    }

    /**
     * 次品检测记录删除
     *
     * @param defective
     * @return
     */
    @Override
    public int deleteDefective(Defective defective) {
        return defectiveMapper.deleteDefective(defective);
    }
}
